const asyncRouterMap = [
  {
    path: '/home',
    title: 'home',
    component: () => import(/* webpackChunkName: "about" */ '../views/Home/index.vue'),
    children: [
      {
        path: '/home',
        redirect: '/welcome'
      },
      {
        name: 'Housing',
        path: '/housing',
        title: '房源管理',
        icon: 'el-icon-menu',
        roles: ['管理员', '员工'],
        component: () => import(/* webpackChunkName: "about" */ '../views/Home/children/Housing.vue')
      },
      {
        name: 'Stream',
        path: '/stream',
        title: '直播管理',
        icon: 'el-icon-video-camera-solid',
        roles: ['管理员', '员工'],
        component: () => import(/* webpackChunkName: "about" */ '../views/Home/children/Stream.vue')
      },
      {
        name: 'Group',
        path: '/group',
        title: '团购管理',
        icon: 'el-icon-shopping-bag-1',
        roles: ['管理员', '员工'],
        component: () => import(/* webpackChunkName: "about" */ '../views/Home/children/Group.vue')
      },
      {
        name: 'Audit',
        path: '/audot',
        title: '审核管理',
        icon: 'el-icon-connection',
        roles: ['管理员'],
        component: () => import(/* webpackChunkName: "about" */ '../views/Home/children/Audit.vue')
      },
      {
        name: 'Order',
        path: '/order',
        title: '订单管理',
        icon: 'el-icon-shopping-cart-full',
        roles: ['管理员'],
        component: () => import(/* webpackChunkName: "about" */ '../views/Home/children/Order.vue')
      },
      {
        name: 'Information',
        path: '/information',
        title: '资讯管理',
        icon: 'el-icon-chat-dot-round',
        roles: ['管理员'],
        component: () => import(/* webpackChunkName: "about" */ '../views/Home/children/Information.vue')
      },
      {
        name: 'Broker',
        path: '/broker',
        title: '经纪人管理',
        icon: 'el-icon-user',
        roles: ['管理员'],
        component: () => import(/* webpackChunkName: "about" */ '../views/Home/children/Broker.vue')
      },
      {
        name: 'Detail',
        path: '/detail',
        title: '直播',
        icon: 'el-icon-user',
        roles: ['管理员'],
        component: () => import(/* webpackChunkName: "about" */ '../views/Detail.vue')
      }
    ]
  }
]

export default asyncRouterMap
